/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author pborrego
 */
@Entity
@Table(name = "DELICIOUSTAGS")
@NamedQueries({@NamedQuery(name = "Delicioustags.findAll", query = "SELECT d FROM Delicioustags d"), @NamedQuery(name = "Delicioustags.findByDelicioustagid", query = "SELECT d FROM Delicioustags d WHERE d.delicioustagid = :delicioustagid"), @NamedQuery(name = "Delicioustags.findByDeliciousid", query = "SELECT d FROM Delicioustags d WHERE d.deliciousid = :deliciousid"), @NamedQuery(name = "Delicioustags.findByTagid", query = "SELECT d FROM Delicioustags d WHERE d.tagid = :tagid")})
public class Delicioustags implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "DELICIOUSTAGID")
    private Integer delicioustagid;
    @Column(name = "DELICIOUSID")
    private Integer deliciousid;
    @Column(name = "TAGID")
    private Integer tagid;

    public Delicioustags() {
    }

    public Delicioustags(Integer delicioustagid) {
        this.delicioustagid = delicioustagid;
    }

    public Integer getDelicioustagid() {
        return delicioustagid;
    }

    public void setDelicioustagid(Integer delicioustagid) {
        this.delicioustagid = delicioustagid;
    }

    public Integer getDeliciousid() {
        return deliciousid;
    }

    public void setDeliciousid(Integer deliciousid) {
        this.deliciousid = deliciousid;
    }

    public Integer getTagid() {
        return tagid;
    }

    public void setTagid(Integer tagid) {
        this.tagid = tagid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (delicioustagid != null ? delicioustagid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Delicioustags)) {
            return false;
        }
        Delicioustags other = (Delicioustags) object;
        if ((this.delicioustagid == null && other.delicioustagid != null) || (this.delicioustagid != null && !this.delicioustagid.equals(other.delicioustagid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.Delicioustags[delicioustagid=" + delicioustagid + "]";
    }

}
